Release 10.1A: OpenEdge Data Management:
SQL Reference


RAND

Returns a randomly generated number, using expression as an optional seed value.

Syntax

RAND ( [ expression ] ) 

Example

This example illustrates the RAND function, supplying an optional seed value of ‘3’:

SELECT RAND(3) 'Random number using 3 as seed value' 
     FROM MYMATH; 

Note

Compatibility

ODBC compatible


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095